package com.tjy.wfx.dao;

import com.tjy.wfx.model.SysModule;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SysModuleMapper extends Mapper<SysModule> {

    @Select(value = "select m.* from user_info u,sys_user_role ur, sys_role_fun rm,sys_module m where u.user_id=ur.user_id and ur.role_id=rm.role_id and rm.module_id =m.module_code and u.account=#{account}")
    List<SysModule> findAllModule(String account);
}
